<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\ClazzSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Clazzs';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="clazz-index">

    <?php Pjax::begin(); ?>
    <div class="panel">
		<div class="panel-heading panel-heading-auto">
            <?php echo $this->render('_search', ['model' => $searchModel]); ?>
		</div>
        <div class="panel-body">

    <p>
        <?= Html::a('新增', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?= GridView::widget([
        'layout' => "{items}\n{pager}",
        'tableOptions' => ['class' => 'table table-hover table-bordered'],
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn', 'header' => '序号'],

            'ID',
            'ZYID',
            'NJ',
            'BJBH',
            'BZRXM',
            //'BZRGH',

            ['class' => 'yii\grid\ActionColumn', 'header'=>'操作'],
        ],
    ]); ?>

		</div>
	</div>
    <?php Pjax::end(); ?>

</div>
